Js Function
Represents a JavaScript function that can be passed between Java and JavaScript as a method argument or a return value. The function lifetime is bound to the lifetime of the frame this function belongs to. When the owner frame is unloaded, all the JavaScript objects are automatically disposed. An attempt to access a disposed JavaScript object will result in
IllegalStateException
.
Since
7.7
Functions
Link copied to clipboard
Checks whether this JavaScript object or any of its prototypes has an enumerable property with the given
name
.Link copied to clipboard
public abstract CompletableFuture<T> invokeAsync<T>(@Nullable() JsObject object, Array<Object> args)
Invokes this function on the given
object
with the specified args
.Link copied to clipboard
Returns an immutable list of the names of the properties of this JavaScript object, both enumerable and non-enumerable, excluding the properties from the prototype objects.
Link copied to clipboard
Returns an immutable list of the names of the enumerable properties of this JavaScript object, including the properties from the prototype objects.
Link copied to clipboard
Creates a new property with the given
name
or updates the existing one in the current JavaScript object and returns true
if the property with the given name
was created or updated successfully.Link copied to clipboard
Removes a property with the given
name
in the JavaScript object and returns
true
if the property was successfully removed.